import React, { Component } from 'react';
import {Navigator}
    from 'react-native-deprecated-custom-components'

import Login from './LocalLoginScreen';

const defaultRoute = {
    component:Login,
    name:'login'
};

export default class NavIndex extends Component {

    _renderScene(route, navigator) {
        let Component = route.component;
        return (
            <Component {...route.params} navigator={navigator} />
        );
    }

    render() {
        return (

            <Navigator initialRoute={defaultRoute}
                       renderScene={this._renderScene}
                       configureScene={(route) => {
                           return Navigator.SceneConfigs.PushFromRight;
                       }}
            />
        );
    }
}